home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _WordMacroRun.au3 < prev    next >
Text File  |  2007-09-08  |  426b  |  10 lines

  1. ; *******************************************************
  2. ; Example 1 - Create a word window, open a document,
  3. ;               run a macro named "My Macro" with one
  4. ;                argument "Test", quit without saving changes.
  5. ; *******************************************************
  6. ;
  7. #include <Word.au3>
  8. $oWordApp = _WordCreate (@ScriptDir & "\Test.doc")
  9. _WordMacroRun ($oWordApp, "My Macro", "Test")
  10. _WordQuit ($oWordApp, 0)